package com.yang.demo1;
//中介：代理角色
public class Proxy implements Rent {
    private Host host;
    public Proxy(){

    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent() {
        host.rent();
        seenHouse();
        hetong();
        fare();
    }

    //看房
    public void seenHouse(){
        System.out.println("中介带你看房");
    }

    //签租赁合同
    public void hetong(){
        System.out.println("签租赁合同");
    }

    //收中介费
    public void fare(){
        System.out.println("收中介费");
    }
}
